home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / Tool Chest / Development Platforms / Macintosh Common Lisp Related / interfaces / PInterface Translator / PInterfaces / SegLoad.p < prev    next >
Encoding:
Text File  |  1993-09-16  |  1.2 KB  |  61 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Sunday, January 6, 1991 at 11:15 PM
  3.     SegLoad.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.         Copyright Apple Computer, Inc.    1985-1990
  7.         All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT SegLoad;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingSegLoad}
  21. {$SETC UsingSegLoad := 1}
  22.  
  23. {$I+}
  24. {$SETC SegLoadIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$SETC UsingIncludes := SegLoadIncludes}
  30.  
  31. CONST
  32. appOpen = 0;            {Open the Document (s)}
  33. appPrint = 1;           {Print the Document (s)}
  34.  
  35. TYPE
  36. AppFile = RECORD
  37.     vRefNum: INTEGER;
  38.     fType: OSType;
  39.     versNum: INTEGER;   {versNum in high byte}
  40.     fName: Str255;
  41.     END;
  42.  
  43.  
  44. PROCEDURE UnloadSeg(routineAddr: Ptr);
  45.     INLINE $A9F1;
  46. PROCEDURE ExitToShell;
  47.     INLINE $A9F4;
  48. PROCEDURE GetAppParms(VAR apName: Str255;VAR apRefNum: INTEGER;VAR apParam: Handle);
  49.     INLINE $A9F5;
  50. PROCEDURE CountAppFiles(VAR message: INTEGER;VAR count: INTEGER);
  51. PROCEDURE GetAppFiles(index: INTEGER;VAR theFile: AppFile);
  52. PROCEDURE ClrAppFiles(index: INTEGER);
  53.  
  54.  
  55. {$ENDC}    { UsingSegLoad }
  56.  
  57. {$IFC NOT UsingIncludes}
  58.     END.
  59. {$ENDC}
  60.  
  61.